// 创建vue对象
var vm = new Vue({
    el: "#app",
    data(){
        return {
            users: null,
            lists: null
        }
    },
    methods: {
        my_async(){
            axios.post("../json/users.json")
                .then(res => {
                    this.users = res.data;
                })
                .catch(error => console.log(error))
        }
    },
    mounted(){
        axios.post("../json/users.json", {
            username: "大锤",
            pwd: "12346"
        })
            .then(res => {
                this.lists = res.data;
            })
            .catch(error => console.log(error))
    }

});